package com.click369.mianshiqingbao.mapper;

import com.click369.mianshiqingbao.pojo.TopicBean;
import com.click369.mianshiqingbao.pojo.TopicBeanExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 题目信息的数据访问接口
 */
public interface TopicBeanMapper {
    long countByExample(TopicBeanExample example);

    int deleteByExample(TopicBeanExample example);

    int deleteByPrimaryKey(Long topicId);

    int insert(TopicBean record);

    int insertSelective(TopicBean record);

    List<TopicBean> selectByExample(TopicBeanExample example);

    TopicBean selectByPrimaryKey(Long topicId);

    int updateByExampleSelective(@Param("record") TopicBean record, @Param("example") TopicBeanExample example);

    int updateByExample(@Param("record") TopicBean record, @Param("example") TopicBeanExample example);

    int updateByPrimaryKeySelective(TopicBean record);

    int updateByPrimaryKey(TopicBean record);
}